#ifndef MCARD_H
#define MCARD_H

#include <QString>

class MCard
{
public:

    int id; // 0~14 represents 3,4,5,...,10,J,Q,K,A,2,joker,JOKER
    MCard(); // -1 as default, means empty or error

    // compare single card
    bool operator<(const MCard &a) const;

    // return the name of a card
    QString str() const;

    void setByStr(const QString s);

    static MCard fromStr(const QString s);
};

#endif // CARD_H
